<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="com.colabo.j2ee.web.oaf.monitorperspective.action.SecurityStrategyViewAction" 
%>
<%
	
	String selectedGroupName = new String( request.getParameter("selectedGroupName").getBytes("iso8859-1"), "utf-8");
	SecurityStrategyViewAction action = new SecurityStrategyViewAction();
	String securityStrategyGroupDetails = action.loadSecurityStrategyGroupDetails(selectedGroupName);
	
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">

    new MUI.List({
        container:'ssGroupDetailListWrapper',
        showCheckBox:false,
        width:250,
        height:100,
        id:'ssGroupDetailList',
        items:<%=securityStrategyGroupDetails%>,
        columns:[
            {text:'安全策略项',name:'strategyDesc'},
            {text:'配置值',name:'strategyValue'},
            {text:'标准值',name:'sysStrategyValue'}
        ],
        onItemCommand: function(item,self,cmd,img) {
            // on click command config, open the detail config window
            alert('receieved ' + cmd.name + ' command on item ' + item.groupName);
        },
        onItemChecked: function(item,self,cmd,img) {
            alert('receieved onItemChecked command on item ' + item.value);
        },
        onItemSelected: function(item,self,cmd,img) {
            alert('receieved onItemSelected command on item ' + item.isdefault);
        },
        onItemColumnBound: function(item,self,col,td) {
        }
    });
</script>
</head>
<body>
<div id="ssGroupDetailListWrapper"></div>
</body>
</html>